import Vue from 'vue'
import App from './App.vue'
import { getModule } from './utils/index'

// 获取directives文件夹下的所有的指令
const directives = getModule(require.context('./directive', true, /\.js$/))
// 循环导入app中
for (const key in directives) {
  Vue.directive(key, directives[key])
}

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')
